﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
using Uipath_License.Tools;

namespace Uipath_License.Uc
{
    /// <summary>
    /// UC_HistoryUpdateLog.xaml 的交互逻辑
    /// </summary>
    public partial class UC_HistoryUpdateLog : UserControl
    {
        public UC_HistoryUpdateLog()
        {
            InitializeComponent();
            Thread thread = new Thread(x =>
            {
                string logText = HttpHelper.GetUrlString("http://154.221.21.34:8888/down/qCallN8O5tm9");
                Application.Current.Dispatcher.BeginInvoke(new Action(() =>
                {
                    HistoryUpdateLog_TextBlock.Text = logText;
                }));
            });
            thread.Start();

        }


    }
}
